package com.springboot.astra.mapper;

import com.springboot.astra.bean.RoleResource;

import java.util.List;

public interface RoleResourceMapper {
    List<RoleResource> getAllByRoleId(Integer id);
    //查询权限是否已经存在
    RoleResource doesRoleResourceExist(RoleResource roleResource);
    void insertRoleResource(RoleResource roleResource);
    void updateOneById(RoleResource roleResource);
    void deleteOneById(Integer id);
    void deleteAll(Integer roleId);
}
